import request from "../utils/request";
interface LoginData{
    username:string,
    password:string,
}
export let loginApi=(data:LoginData)=>{
    return request({
        url:"/api/login",
        method:'POST',
        data:data
    })
}